def numberOfDaysInAYear(year):
    if year % 100 == 0:
        if year % 400 == 0:
            return str(year) + ' has ' + '366'
        else:
            return str(year) + ' has ' + '365'
    else:
        if year % 4 == 0:
            return str(year) + ' has ' + '366'
        else:
            return str(year) + ' has ' + '365'



for i in range(2000,2011):
    print(numberOfDaysInAYear(i))